<?php

namespace app\api\controller;

use app\Request;
use think\Db;

class User
{
    public function addData(Request $request)
    {
//        return $request->post();
        $param = User::param($request);
        $userData=[
            'name'=>$param['name'],
            'age'=>$param['age'],
            'like'=>$param['like'],
            'sex'=>$param['sex'],
            ];
        $res = User::insert($userData);
        return  ;
    }
}